import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'tabs',
      component: () => import('@/views/tab/TabView.vue'),
      children: [
        {
          path: '/home',
          name: 'home',
          component: () => import('@/views/tab/home/HomeView.vue'),
        },
        {
          path: '/order',
          name: 'order',
          component: () => import('@/views/tab/order/OrderView.vue'),
        },
        {
          path: '/me',
          name: 'me',
          component: () => import('@/views/tab/me/MeView.vue'),
        },
      ],
    },
  ],
})
export default router
